import request from '@/utils/request'

// 查询租户模块列表
export function listBusinessModule(query) {
  return request({
    url: '/system/businessModule/list',
    method: 'get',
    params: query
  })
}

// 查询租户模块详细
export function getBusinessModule(id) {
  return request({
    url: '/system/businessModule/' + id,
    method: 'get'
  })
}

// 新增租户模块
export function addBusinessModule(data) {
  return request({
    url: '/system/businessModule',
    method: 'post',
    data: data
  })
}

// 修改租户模块
export function updateBusinessModule(data) {
  return request({
    url: '/system/businessModule',
    method: 'put',
    data: data
  })
}

// 删除租户模块
export function delBusinessModule(id) {
  return request({
    url: '/system/businessModule/' + id,
    method: 'delete'
  })
}
